package com.itheima.mapper;

import com.itheima.pojo.vendor;
import com.itheima.pojo.vendorQueryParam;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface vendorMapper {
    List<vendor> getPageInfo(vendorQueryParam vendorQueryParam);
    @Insert("insert into vendor(vendor_name, address, phone, supply_goods) values (#{vendorName},#{address},#{phone},#{supplyGoods})")
    void addVebdor(vendor vendor);

    void deletevendor(List<Integer> ids);

    @Select("select * from vendor where id = #{id}")
    vendor findVendor(Integer id);

    void updateVendor(vendor vendor);
}
